# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=boca
pkgver=1.0.6a
pkgrel=0
arch="all"
url="https://github.com/enzo1982/boca"
pkgdesc="A component library used by the fre:ac audio converter"
license="GPL-2.0-or-later"
makedepends="
	expat-dev
	libcdio-dev
	libcdio-paranoia-dev
	pulseaudio-dev
	smooth-dev
	uriparser-dev
	"
source="https://github.com/enzo1982/boca/archive/v$pkgver/boca-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/BoCA-$pkgver"

prepare() {
	default_prepare

	find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
}

build() {
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="
416cdef64c52b7ab810b440e818bc4b08a4dca4c2f177b6682ac88817b8cdfcf1528c80f968b65e370f3a79f46da578699d5876aad672581456933791108bf04  boca-v1.0.6a.tar.gz
"
